package com.example.dingding.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_use_car")
//表t_rentral_car
public class RentralCar {
    private Integer id;
    //审批实例id
    private String instanceId;
    //紧急程度
    private String degreeUrgency;
    //乘车人员
    private String rider;
    //手机号码
    private String phone;
    //发起人手机号码
    private String initiatorPhone;
    //用车事由
    private String vehicleCategory;
    //目的地区域
    private String destinationArea;
    //具体目的地
    private String specificDestination;
    //其他用车
    private String carDriven;
    //用车类别
    private String vehicleType;
    //用车时间
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String useTime;
    //返回时间
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String returnTime;
    //是否工作日
    private String workingDay;
    //部门
    private String department;
    //逻辑删除
    @TableLogic(value = "0", delval = "1")
    private Integer delflag;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    //创建人
    private Integer createBy;

    //创建人姓名
    private String createByName;

    //成员ID
    private String userid;
    //
    //审批类型
    private int approvalType;
    //成员姓名
    private String userName;
    //出发地点
    private String startingPoint;

    //车辆信息
    private String carMessage;

    //车牌号
    private String carNumber;

    //审批状态
    private Integer approvalCount;

   //乘车人数
   private String riderNumber;
}
